home *** CD-ROM | disk | FTP | other *** search
- Path: engnews1.Eng.Sun.COM!taumet!clamage
- From: Michael Cook <mcook@cognex.com>
- Newsgroups: comp.std.c++
- Subject: Re: typedef not strong
- Date: 18 Feb 1996 21:46:16 GMT
- Organization: Cognex Corporation, Natick, Massachusetts
- Sender: mcook@cognex.com
- Approved: clamage@eng.sun.com (comp.std.c++)
- Message-ID: <r4d97clcgj.fsf@erawan.cognex.com>
- References: <4g5sm4$dtt@natasha.rmii.com>
- NNTP-Posting-Host: taumet.eng.sun.com
- Content-Type: text
- X-Nntp-Posting-Host: erawan.cognex.com
- X-Newsreader: September Gnus v0.38/Emacs 19.30
- Content-Length: 364
- Originator: clamage@taumet
-
- >>>>> "RP" == Robert Payne <rpayne@rainbow.rmii.com> writes:
-
- RP> Why has C++ stayed with the weak typedef? It has always seemed to
- RP> me that it should provide a new type and not just a synomym.
-
- C++ /has/ a mechanism for creating new types: `class'.
- `typedef' is just a fancy `#define'--and I think it's clear from K&R that
- that's all it was intended to be.
-
- [ To submit articles: Try just posting with your newsreader. If that fails,
- use mailto:std-c++@ncar.ucar.edu
- FAQ: http://reality.sgi.com/employees/austern_mti/std-c++/faq.html
- Policy: http://reality.sgi.com/employees/austern_mti/std-c++/policy.html
- Comments? mailto:std-c++-request@ncar.ucar.edu
- ]
-